package edu.sias.hyznxfapi.chat.imageGen;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin")
@Slf4j
public class test {
    @GetMapping("/image")
    public String upload(String str) {
        String url = MyUtil.imageCreate(str,null);
        System.out.println(url);
        return url;
    }
}
